#include "type.h"
#include "cli_main.h"
    
#define PID_ERROR -1
#define PID_SUCCESS 0
#define PID_GOING  1


#define IMSI_DATA_TYPE 0
#define MAC_DATA_TYPE  1
#define PLACE_STATE_TYPE 2
#define DEV_STATE_TYPE  3
bool getUploadState();
void ftpInit();
bool uploadFile();
I32 checkUpload();
bool saveFtpdata(UPDATA_CACHE *updata, PHONE_TMP *phone, I32 *len);
I32 checkUpLog();
bool uploadLogFile();
bool fileIsFull();
const char *getMacFileName();
bool createCompanyBaseInfo();
bool createPlaceStateInfo();
I8 *getDeviceMac12();
const char *getFileName();
bool createFtpFile(U8 type);
S8 getField_Strength();
I32 *getcurrentFileRows();
bool createPlaceJsonFile(char *buf);
bool createDeviceJsonFile(char *buf);
bool createTerminalDevInfo();
bool createWifiInfo();
void resetFileName(void);
